﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using SimpleModel.Model;


namespace SimpleModel.Mapping
{
    public class teacherMap:EntityTypeConfiguration<teacher>
    {
        public teacherMap()
        {
            HasMany(p => p.classinfos).WithMany(t => t.teachers).Map(m => { m.ToTable("teacher_class_map");});
            ToTable("teacher");
        }
    }
}
